"""数据收集

Keyword arguments:
argument -- description
Return: return_description
"""

import json


class DataCollector:
    def __init__(self):
        pass

    def collect_json(self, json_path: str) -> list:
        """获取数据

        Keyword arguments:
        argument -- description
        Return: return_description
        """

        with open(json_path, "rb") as swaggerjson:
            data = json.load(swaggerjson)
        return data
